Cube Yogi
Cube Yogi
Leader in Zoho Solutions/Consultation

Create Validation Rule between two dates in Zoho CRM

Here is our approach for creating validation rule between two dates in Zoho CRM

Approach

We can create validation rule using custom function so that we can validate two dates fields based on our requirements

Note: 
  •  Replace the field name API in the code before using it

1. Creating Validation Rule

1.1 Go to "Setup" --->Tap on "Modules and Fields"

1.2 Select the module containing date fields

1.3 Select the layout for the module

1.4 Tap on "..." and select "Create Validation Rule"

1.5 Select "Validate using function" and tap on the button "Next"

1.6 Select "Write your own"

1.7 Fill up the mandatory fields

1.8 Copy paste the code and save it

1.9 Tap on "Save" button

Code Snippet

Sample Result